package org.magnerfuller.imtoolkit.util.exception;

public class OptionParserException extends Exception {

  public static final int INVALID_KEY = 0;
  public static final int INVALID_VALUE = 1;
  public static final int MISSING_VALUE = 2;
  
  protected int type;
  protected String key;
  protected String value;
  
  public OptionParserException(String text, int type, String key, String value) {
    super(text);
    
    this.type = type;
    this.key = key;
    this.value = value;
  }
  
  public int getType() {
    return type;
  }
  
  public String getKey() {
    return key;
  }
  
  public String getValue() {
    return value;
  }
}
